import PropTypes from 'prop-types'; //vite-plugin-eslint 里面

const Welcome = function ({ top, bottom }) {
  return (
    <div>
      {/* 解构接受props */}
      {top}
      hello welcome
      {bottom}
    </div>
  );
};
Welcome.propTypes = {
  top: PropTypes.obj,
  bottom: PropTypes.obj,
};
const App = () => {
  return (
    <>
      <Welcome
        top={<div>aaaaaaaaaaa</div>}
        bottom={<div>aaaaaaaaaaa</div>}
      ></Welcome>
    </>
  );
};
export default App;
